{include file="comm/left"}
<body>
<div class="col-sm-6">
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>优惠卷信息修改</h5>
            <div class="ibox-tools">
                <a class="collapse-link">
                    <i class="fa fa-chevron-up"></i>
                </a>
            </div>
        </div>
        <div class="ibox-content">
            <form class="form-horizontal m-t" id="commentForm" action="{url:('index/ticket/add')}" method="post"  enctype="multipart/form-data">
                <div class="form-group">
                    <label class="col-sm-3 control-label">优惠金额：</label>
                    <div class="col-sm-8">
                        <input id="money" name="money" type="number" minlength="1" required="" aria-required="true" class="form-control" value="{$result.money}" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">满多少使用：</label>
                    <div class="col-sm-8">
                        <input id="min" name="min" type="numbers" minlength="1" required="" aria-required="true" class="form-control" value="{$result.min}" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">到期时间：</label>
                    <div class="col-sm-8">
                        <input id="stoptime" name="stoptime" required="" aria-required="true" type="datetime-local" class="form-control" value="{$time}" /> 
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">多少积分可以兑换：</label>
                    <div class="col-sm-8">
                        <input id="intergral" name="intergral" type="number" minlength="1" required="" aria-required="true" class="form-control" value="{$result.intergral}"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">优惠卷介绍：</label>
                    <div class="col-sm-8">
                        <textarea name="comment" cols="43" rows="10">{$result.comment}
						</textarea>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">商品名称：</label>
                    <div class="col-sm-8">
                        <select class="form-control" name="issueid">
                        {volist name='shang' id='value'}
                            <option value='{$value.id}' {if $result.issueid==$value.id}selected{/if}>{$value.name}</option>
                        {/volist}
                        </select>
                    </div>
                </div>
                 <div class="form-group">
                    <label class="col-sm-3 control-label">发行数量：</label>
                    <div class="col-sm-8">
                        <input id="number" name="number" minlength="1" required="" aria-required="true" type="text" class="form-control" value="{$result.number}" />
                    </div>
                </div>
                <input type="hidden" name="hid" value="{$result.id}">
                <div class="form-group">
                    <div class="col-sm-4 col-sm-offset-3">
                        <button class="btn btn-primary" type="submit" name="submit">修改</button>
                    </div>
                </div>
            </form>
        </div>
    </div >
</div>
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js" 链接网上的jq>

</script>
</body>